﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ImageCaptureDSG_SOHO;

namespace TaoKeyBanQuyen
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void bt_taoma_Click(object sender, EventArgs e)
        {
            txt_mabq.Text = TaoKey(txt_tendk.Text, txt_madk.Text, "d$gv!etnam");
        }
        private string TaoKey(string name, string key, string text) {
            string value = "";key=key+text;
            value = DSG_SOHOScan.Encrypt(name, key);
            return value;
        }

        private void bt_huybo_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
